package com.cai;

/**
 * @author：蔡松坡
 * @date：2020/11/26 08 : 28
 * @package：com.cai
 */
public class Moves implements Comparable<Moves>{
    private Integer moviesId;
    private String title;
    private String date;
    private String gernes;

    public Integer getMoviesId() {
        return moviesId;
    }

    public void setMoviesId(Integer moviesId) {
        this.moviesId = moviesId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getGernes() {
        return gernes;
    }

    public void setGernes(String gernes) {
        this.gernes = gernes;
    }

    @Override
    public String toString() {
//        return "Moves{" +
//                "moviesId=" + moviesId +
//                ", title='" + title + '\'' +
//                ", date='" + date + '\'' +
//                ", gernes='" + gernes + '\'' +
//                '}';
//        System.out.print(movies.getMoviesId()+"\t|\t");
//        System.out.print(movies.getTitle()+"\t|\t");
//        System.out.print(movies.getDate()+"\t|\t");
//        System.out.println(movies.getGernes());
        return moviesId+"\t|\t"+title+"\t|\t"+date+"\t|\t"+gernes;
    }

    @Override
    public int compareTo(Moves moves) {
        return this.getTitle().compareTo(moves.getTitle());
    }
}
